<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:49:"D:\phpStudy\WWW\crm/app/index\view\mine\edit.html";i:1513233057;s:44:"D:\phpStudy\WWW\crm/app/index\view\base.html";i:1512719636;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>山东归仁生物科技有限公司<?php echo HTRConf('CONF.appName'); ?></title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/> 
<link href="__INDEX__/js/ligerui/skins/Aqua/css/ligerui-all.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" /> 
<link href="__STATIC__/plugins/validator/jquery.validator.css?v=<?php echo $v; ?>" rel="stylesheet">

<link href="__INDEX__/css/style.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" />   
<script src="__STATIC__/js/jquery.min.js?v=<?php echo $v; ?>"></script>  
<script src="__INDEX__/js/ligerui/js/ligerui.all.js?v=<?php echo $v; ?>" type="text/javascript"></script> 
<script type='text/javascript' src='__STATIC__/plugins/layer/layer.js?v=<?php echo $v; ?>'></script> 
<script src="__STATIC__/js/common.js?v=<?php echo $v; ?>"></script>
<script>
window.conf = {"ROOT":"__ROOT__","APP":"__APP__","STATIC":"__STATIC__","SUFFIX":"<?php echo config('url_html_suffix'); ?>","USER_LOGO":"<?php echo HTRConf('CONF.userLogo'); ?>",'GRANT':'<?php echo implode(",",session("HTR_STAFF.privileges")); ?>'}
</script>
<script src="__INDEX__/js/common.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/local/zh-CN.js?v=<?php echo $v; ?>"></script>
</head>
<body>

<div class="l-loading" style="display: block" id="htr-loading"></div>
<form id="userForm" autocomplete="off" >
<table class='htr-form htr-box-top'>
       <tr>
          <th>姓名<font color='red'>*</font>：</th>
          <td>
            <input type="text" class="ipt" id="user_name" name="user_name" value="<?php echo $data['user_name']; ?>" />
          </td>
          <th>姓别<font color='red'> </font>：</th>
          <td>
            <select id="user_sex" name='user_sex' class='ipt'>
              <option value="0"<?php if($data['user_sex']==0): ?> selected<?php endif; ?>>保密</option>
              <option value="1"<?php if($data['user_sex']==1): ?> selected<?php endif; ?>>男</option>
              <option value="2"<?php if($data['user_sex']==2): ?> selected<?php endif; ?>>女</option>
            </select>   
          </td>
          <th>指导老师<font color='red'> </font>：</th>
          <td>
            <input type="text" class="ipt" id="user_teacher" name="user_teacher" value="<?php echo $data['user_teacher']; ?>" />
          </td>
       </tr>
       <tr>
          <th>联系方式<font color='red'>*</font>：</th>
          <td>
            <input type="text" class="ipt" id="user_phone" name="user_phone" value="<?php echo $data['user_phone']; ?>" />
          </td>
          <th>出生年月<font color='red'> </font>：</th>
          <td>
            <input type="text" class="ipt" id="user_birthday" name="user_birthday" value="<?php echo $data['user_birthday']; ?>" />
          </td>
          <th>服务人员<font color='red'>*</font>：</th>
          <td>
            <select id="staffId" class='ipt'>
              <?php if(is_array($staffList) || $staffList instanceof \think\Collection): $i = 0; $__LIST__ = $staffList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
              <option value="<?php echo $i; ?>" selected><?php echo $vo; ?></option>
              <?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
          </td>
       </tr>
       <tr>
          <th>年龄<font color='red'> </font>：</th>
          <td>
            <input type="text" class="ipt" id="user_age" name="user_age" value="<?php echo $data['user_age']; ?>" />
          </td>
          <th>初次消费金额<font color='red'> </font>：</th>
          <td>
            <input type="text" class="ipt" id="first_consume" name="first_consume" value="<?php echo $data['first_consume']; ?>" />
          </td>
          <th>客户分类<font color='red'> </font>：</th>
          <td>
            <select id="classifyId" name='classifyId' class='ipt'>
              <option value="">-请选择-</option>    
              <?php if(is_array($classifyList) || $classifyList instanceof \think\Collection): $i = 0; $__LIST__ = $classifyList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
              <option value="<?php echo $vo['classifyId']; ?>"<?php if($data['classifyId']==$vo['classifyId']): ?> selected<?php endif; ?>><?php echo $vo['classifyName']; ?></option>
              <?php endforeach; endif; else: echo "" ;endif; ?>
            </select> 
          </td>
       </tr>
       <tr>
          <th>兴趣爱好<font color='red'> </font>：</th>
          <td>
            <select id="interestId" name='interestId' class='ipt'>
              <option value="">-请选择-</option>    
              <?php if(is_array($interestList) || $interestList instanceof \think\Collection): $i = 0; $__LIST__ = $interestList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
              <option value="<?php echo $vo['interestId']; ?>"<?php if($data['interestId']==$vo['interestId']): ?> selected<?php endif; ?>><?php echo $vo['interestName']; ?></option>
              <?php endforeach; endif; else: echo "" ;endif; ?>
            </select>             
          </td>
          <th>其他爱好<font color='red'> </font>：</th>
          <td>
            <input type="text" class="ipt" id="interest_text" name="interest_text" value="<?php echo $data['interest_text']; ?>" />
          </td>
          <th>客户类型<font color='red'> </font>：</th>
          <td>
            <label><input type="radio" class="ipt" id="type0" name="type" <?=($data['type']==0)?'checked':'';?> value="0" />客户转介绍</label>
            <label><input type="radio" class="ipt" id="type1" name="type" <?=($data['type']==1)?'checked':'';?> value="1" />业务扁平开发</label>
          </td>
       </tr>
       <tr>
          <th>所属地区<font color='red'>*</font>：</th>
          <td colspan='3'>            
            <select id="area_0" class='ipt j-areas' level="0" onchange="HTR.ITAreas({id:'area_0',val:this.value,isRequire:true,className:'j-areas'});">
              <option value="">-请选择-</option>
              <?php if(is_array($areaList) || $areaList instanceof \think\Collection): $i = 0; $__LIST__ = $areaList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
              <option value="<?php echo $vo['areaId']; ?>"><?php echo $vo['areaName']; ?></option>
              <?php endforeach; endif; else: echo "" ;endif; ?>
           </select>
          </td>
          <th>详细地址<font color='red'>*</font>：</th>
          <td>
            <input type="text" class="ipt" id="user_address" name="user_address" value="<?php echo $data['user_address']; ?>" />
          </td>
       </tr>
       <tr>
          <th>疾病类型<font color='red'> </font>：</th>
          <td colspan='5'> 
            <?php if(is_array($diseaseList) || $diseaseList instanceof \think\Collection): $i = 0; $__LIST__ = $diseaseList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <label><input type="checkbox" class="ipt" name="diseaseId"<?php echo in_array($vo['diseaseId'],explode(',',$data['diseaseId'])) ? ' checked' : ''?> value="<?php echo $vo['diseaseId']; ?>" /><?php echo $vo['diseaseName']; ?></label>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            <input type="text" class="ipt" id="disease_text" name="disease_text" value="<?php echo $data['disease_text']; ?>" />
          </td>
       </tr>
       <tr>
          <th>客户消费类型<font color='red'> </font>：</th>
          <td colspan='5'>
            <label><input type="radio" class="ipt" id="consume_type0" name="consume_type" <?=($data['consume_type']==0)?'checked':'';?> value="0" />系统性</label>
            <label><input type="radio" class="ipt" id="consume_type1" name="consume_type" <?=($data['consume_type']==1)?'checked':'';?> value="1" />传统型</label>
            <label><input type="radio" class="ipt" id="consume_type2" name="consume_type" <?=($data['consume_type']==2)?'checked':'';?> value="2" />投资型</label>
          </td>
        </tr>
        <tr>
          <th>备注<font color='red'> </font>：</th>
          <td colspan='5'>
            <textarea style="width:600px;height:50px;" class="ipt" id="remark" name="remark"><?php echo $data['remark']; ?></textarea>
          </td>
       </tr>
  <tr>
     <td colspan='6' align='center'>
       <input type="hidden" name="id" id="user_id" class="ipt" value="<?=(int)$data['user_id']?>" />
       <input type="submit" value="提交" class='btn btn-blue' />
       <input type="button" onclick="javascript:history.go(-1)" class='btn' value="返回" />
     </td>
  </tr>
</table>
</form>
<script>
$(function(){editInit({
    areaId:'<?php echo $data["areaId"]; ?>',areaIdPath:'<?php echo $data["areaIdPath"]; ?>'
  })});
</script>


<script src="__INDEX__/mine/mine.js?v=<?php echo $v; ?>" type="text/javascript"></script>

<script>
function showImg(opt){
	layer.photos(opt);
}
function showBox(opts){
	return HTR.open(opts);
}
</script>
</body>
</html>